package com.book.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bs_address")   //1.绑定对应表名
public class Address extends Model<Address>{

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String province;  //省份
    private String city;      //城市
    private String area;      //区域
    private String detailAddress;  //详细地址
    private String emailCode;      //邮政编码
    private String receiver;       //收货人
    private String tel;            //电话
    private String isDefault;      //是否是默认收获地址
}
